package com.lms.desiginmode.builder.infobuilder;

import com.lms.desiginmode.builder.CPU;
import com.lms.desiginmode.builder.Info;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-12-12 16:53
 * @Description:
 */
public class CPUInfoBuilder extends InfoBuilder {
    private Info info=new Info();

    @Override
    void price() {
        System.out.println("cpu 的价格 23423424324");
    }

    @Override
    public Info create() {
        CPU cpu = new CPU.CPUBuilder().name("CPU").usage(0.1).build();
        info.setEndpoint(cpu);
        return info;
    }
}
